{include file="public/head" /}
<!--有理想的地方，地狱都是天堂-->
<!--Copyright @ df81.com 版权所有-->
<!--作者: 南国老符 邮箱：1062129401@qq.com-->
        <!-- 左侧菜单 开始 -->
        <div class="sidebar">
            <nav>
                <ul class="nav nav-pills nav-sidebar flex-column nav-flat nav-legacy d-block d-md-none" data-widget="treeview" role="menu" data-accordion="false">
                    {include file="public/left_content" /}
                </ul>
                <ul class="nav nav-pills nav-sidebar flex-column nav-flat nav-legacy d-block d-md-none" data-widget="treeview" role="menu" data-accordion="false">
                    {include file="public/left_data" /}
                </ul>
                <ul class="nav nav-pills nav-sidebar flex-column nav-flat nav-legacy" data-widget="treeview" role="menu" data-accordion="false">
                    {include file="public/left_global" /}
                </ul>
                <ul class="nav nav-pills nav-sidebar flex-column nav-flat nav-legacy d-block d-md-none" data-widget="treeview" role="menu" data-accordion="false">
                    {include file="public/left_system" /}
                </ul>
            </nav>
        </div>
        <!-- 左侧菜单 结束 -->
    </aside>
    <!-- 左侧 结束 -->
    <!-- 右侧 开始 -->
    <div class="content-wrapper">
        <!-- 内容导航 开始 -->
        <div class="content-header py-2 bg-white mb-3">
            <div class="container-fluid">
                <div class="row">
                    <div class="col-sm-12">
                        <ol class="breadcrumb">
                            <li>{:lang('v_global')}<i class="fas fa-angle-right mx-2"></i></li>
                            <li>{:lang('v_system_manage')}<i class="fas fa-angle-right mx-2"></i></li>
                            <li>{:lang('v_authgroup')} {:lang('v_manage')}</li>
                        </ol>
                    </div>
                </div>
            </div>
        </div>
        <!-- 内容导航 结束 -->
        <!-- 内容主体 开始 -->
        <section class="content">
            <div class="container-fluid">
                <div class="row">
                    <div class="col-md-12">
                        <div class="card">
                            <div class="card-body">
                                <div class="w-100 mb-3">
                                    <a class="btn btn-success mb-2 mr-2" href="{:url('/auth_group/index',['lang'=>$lang])}"><i class="fa fa-fw fa-users mr-1"></i>{:lang('v_authgroup')} {:lang('v_manage')}</a>
                                    <a class="btn btn-default mb-2" href="{:url('/auth_group/edit',['lang'=>$lang])}"><i class="fa fa-fw fa-plus-circle mr-1"></i>{:lang('v_add')} {:lang('v_authgroup')}</a>
                                </div>
                                <table class="table table-striped table-bordered table-hover">
                                    <form name="form_list" id="form_list" action="" method="post">
                                        <tr>
                                            <th width="100" class="text-center">ID</th>
                                            <th>{:lang('v_authgroup_name')}</th>
                                            <th width="150" class="text-center d-invisible">{:lang('v_sequence')}</th>
                                            <th width="200" class="text-center">{:lang('v_do')}</th>
                                        </tr>
                                        {volist name="list" id="rs"}
                                            <input type="hidden" name="id[]" value="{$rs.id}" />
                                            <tr>
                                                <td class="text-center">
                                                    <label class="form-check form-check-inline">
                                                        {gt name="rs.id" value="3"}<input type="checkbox" name="selectid[]" id="selectid" value="{$rs.id}" class="mr-1" />{/gt}
                                                        <span class="d-invisible">{$rs.id}</span>
                                                    </label>
                                                </td>
                                                <td>{$rs.title|msubstr=0,20}</td>
                                                <td class="text-center d-invisible">{$rs.sequence}</td>
                                                <td class="text-center">
                                                    <a href="{:url('/auth_group/edit',['lang'=>$lang,'id'=>$rs['id']])}" class="btn btn-sm btn-success mb-2 mr-2"><i class="fa fa-fw fa-edit mr-1"></i>{:lang('v_edit')}</a>
                                                    {if session('is_admin') eq 9 and $rs.is_admin eq session('is_admin') or in_array($rs.id,explode(',',config('app.other.no_delete_authgroupid')))}
                                                        <span class="btn btn-sm btn-default mb-2 disabled"><i class="fa fa-fw fa-ban mr-1"></i>{:lang('v_cannot_delete')}</span>
                                                    {else /}
                                                        <span onClick="javascript:do_confirm('','','{:url('/auth_group/delete_one',['lang'=>$lang,'id'=>$rs['id']])}','','');" class="btn btn-sm btn-danger mb-2" href="javascript:void(0);" onclick="javascript:delete_one({$rs.id},'{$rs.title}');"><i class="fa fa-fw fa-trash mr-1"></i>{:lang('v_delete')}</span>
                                                    {/if}
                                                </td>
                                            </tr>
                                        {/volist}
                                        <tr>
                                            <td colspan="4">
                                                <div class="row">
                                                    <div class="col-xl-6 mt-2"><div class="float-lg-left mr-4">{$list->render()|raw}</div><div class="float-lg-left">{:lang('v_total')} {$lastPage} {:lang('v_page')} {$total} {:lang('v_records')}</div></div>
                                                    <div class="col-xl-6 mt-2 mt-md-1">
                                                        <div class="float-left float-xl-right">
                                                            <!-- 全选 -->
                                                            <button type="button" class="btn btn-info mr-2 checkbox-toggle"><i class="far fa-fw fa-square mr-1"></i>{:lang('v_select_all')}</button>
                                                            <!-- 真实删除 -->
                                                            <button type="button" class="btn btn-danger" onClick="javascript:do_confirm('#form_list','','{:url('/auth_group/delete_all',['lang'=>$lang])}','','');"><i class="fa fa-fw fa-trash mr-1"></i>{:lang('v_delete_select')}</button>
                                                        </div>
                                                    </div>
                                                </div>
                                            </td>
                                        </tr>
                                    </form>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </section>
        <!-- 内容主体 结束 -->
    </div>
    <!-- 右侧 结束 -->
{include file="public/foot" /}
</body>
</html>